Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cap to numpy and shapely version support, fix tests, upgrade precommit #291

Merged
merged 13 commits into from
Sep 13, 2024

Conversation

scottclowe
Copy link
Member

  • Upgrade outdated tests
  • Constrain requirements with upper bounds numpy>=1.13.0,<1.24 and shapely>=1.5.17,<2.0 as we do not currently support newer versions of these dependencies. Numpy 1.24 stopped automatically detecting ragged arrays, which now need to be specified with dtype=object. Shapely 2.0 has some backward-incompatible API changes.

Closes #285. Closes #290.

scottclowe and others added 13 commits September 12, 2024 23:33
- checkout v2 -> v4
- setup-python v2 -> v5
- upload-artifact v2 -> v4
- download-artifact v2 -> v4
- codecov-action v1 -> v4
Since python no longer supports 2.7-3.7, we drop testing on these
versions too. GHA no longer supports running on some of these
versions.
updates:
- [github.com/PyCQA/isort: 5.10.1 → 5.13.2](PyCQA/isort@5.10.1...5.13.2)
- [github.com/psf/black: 21.12b0 → 24.8.0](psf/black@21.12b0...24.8.0)
- [github.com/asottile/blacken-docs: v1.12.1 → 1.18.0](adamchainz/blacken-docs@v1.12.1...1.18.0)
- [github.com/kynan/nbstripout: 0.5.0 → 0.7.1](kynan/nbstripout@0.5.0...0.7.1)
- [github.com/nbQA-dev/nbQA: 1.3.1 → 1.8.7](nbQA-dev/nbQA@1.3.1...1.8.7)
- [github.com/pre-commit/pygrep-hooks: v1.9.0 → v1.10.0](pre-commit/pygrep-hooks@v1.9.0...v1.10.0)
- [github.com/pre-commit/pre-commit-hooks: v4.1.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.1.0...v4.6.0)
- [github.com/PyCQA/flake8: 4.0.1 → 7.1.1](PyCQA/flake8@4.0.1...7.1.1)
In numpy 1.24, dtype=object has to be specified when creating
a ragged array. In fissa, we were reliant on that being automatically
detected.
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link

codecov bot commented Sep 13, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 83.47%. Comparing base (8cf6a17) to head (1641e43).
Report is 14 commits behind head on master.

Files with missing lines Patch % Lines
fissa/readimagejrois.py 0.00% 1 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (8cf6a17) and HEAD (1641e43). Click for more details.

HEAD has 149 uploads less than BASE
Flag BASE (8cf6a17) HEAD (1641e43)
unittests 82 0
nbsmoke 67 0
Additional details and impacted files
@@             Coverage Diff             @@
##           master     #291       +/-   ##
===========================================
- Coverage   94.08%   83.47%   -10.62%     
===========================================
  Files           8        8               
  Lines        1217     1198       -19     
  Branches      313      304        -9     
===========================================
- Hits         1145     1000      -145     
- Misses         36      162      +126     
  Partials       36       36               
Flag Coverage Δ
nbsmoke ?
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@scottclowe scottclowe merged commit a84c88d into master Sep 13, 2024
9 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant